﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace PilotProject
{
    [MetadataType(typeof(PersonMeta))]
    public abstract partial class Person
    {
       
        private Suburb suburb = new Suburb();

        public int postcode
        {
            get
            {
                return suburb.Postcode;
            }
            set
            {
               
                this.suburb.Postcode = value;
            }
        }

        public String locality
        {
            get
            {
                return suburb.Locality;
            }
            set
            {
                this.suburb.Locality = value;
            }
        }

        public String state
        {
            get
            {
                return suburb.StateDesc;
            }
            set
            {
                this.suburb.StateDesc = value;
            }
        }
    }
}
